<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use DB;

class IndexController extends Controller
{
    public function index()
    {
    	$res=DB::table('announce')->where('status',1)->orderBy('id','desc')->get();
    	$volume=DB::table('volume')->where('id',1)->first()->volume;
    	return view('Admin.index',['res'=>$res,'volume'=>$volume]);
    }
}
